<?php

$array=array(
  'name'=>'lisi',
  'age'=>array(
      'today'=>'19',
    'qunian'=>'18'
)
);
echo json_encode($array);